//
//  Errors.h
//  HandPay
//
//  Created by xy on 10-4-19.
//  Copyright 2010 HANDPAY. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    ERR_UNKOWN=0,
    ERR_MSG_NETWORK,
    ERR_MSG_SECURE,
	ERR_MSG_HTTP,
	ERR_MSG_HTTP_DATA,
	ERR_MSG_HTTP_DISCONNECT,
	ERR_MSG_DATA,
	ERR_MSG_TIMEOUT,
    ERR_MSG_LOGIN,
	
	ERR_MSG_UI_SCRIPT_ERROR,
	ERR_MSG_SCRIPT_EXECUTE,
	ERR_MSG_UI,
	ERR_PACKAGE,
	
	ERR_CODE_UNKOWN,
	ERR_CODE_NETWORK,
	ERR_CODE_HTTP,
	ERR_CODE_HTTP_DATA,
	ERR_CODE_HTTP_DISCONNECT,
	ERR_CODE_DATA,
	ERR_CODE_TIMEOUT,
	
	ERR_CODE_UI_SCRIPT_ERROR,
	ERR_CODE_SCRIPT_EXECUTE,
	ERR_CODE_UI,
	
	ERR_DO_PAYMENT,
	ERR_DO_BALANCE,
	ERR_CLIENT_CHECK_MAC,
	ERR_SMART_CARD
} ErrorType;

@interface Errors : NSObject {

}

+(NSString *)getErrorMsg:(ErrorType) erro;

@end
